package com.frame.work.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;

@Data
@EqualsAndHashCode(callSuper = true)
@Builder
@AllArgsConstructor
@NoArgsConstructor
@TableName(value = "`tbl_metering_log`")
public class TblMeteringLog extends BaseClassEntity {
    /**
     * 网关MAC
     */
    @TableField(value = "`gateway_mac`")
    private String gatewayMac;

    /**
     * 设备序列号
     */
    @TableField(value = "`zigbee_mac`")
    private String zigbeeMac;

    /**
     * 电量
     */
    @TableField(value = "`electric_quantity`")
    private Double electricQuantity;

    /**
     * 电压
     */
    @TableField(value = "`voltage`")
    private Double voltage;

    /**
     * 电流
     */
    @TableField(value = "`current`")
    private Double current;

    /**
     * 功率
     */
    @TableField(value = "`power`")
    private Double power;

    /**
     * 用户ID
     */
    @TableField(value = "`user_id`")
    private String userId;
}